package com.ga.wact.entity;

import java.sql.Date;

public class ValidateCode {
    private int id;
    private int code;
    private int userId;
    private Date beginTime;
    private Date endTime;
    private int usage;

    public ValidateCode(int id, int code, int userId, Date beginTime, Date endTime, int usage) {
        this.id = id;
        this.code = code;
        this.userId = userId;
        this.beginTime = beginTime;
        this.endTime = endTime;
        this.usage = usage;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public int getUsage() {
        return usage;
    }

    public void setUsage(int usage) {
        this.usage = usage;
    }

    public ValidateCode() {
    }

    @Override
    public String toString() {
        return "ValidateCode{" +
                "id=" + id +
                ", code=" + code +
                ", userId=" + userId +
                ", beginTime=" + beginTime +
                ", endTime=" + endTime +
                ", usage=" + usage +
                '}';
    }
}
